package com.it.park.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.QuestionService;
import com.it.park.dao.QuestionMapper;
import com.it.park.model.Question;

@Service("questionService")
public class QuestionServiceImpl extends BaseServiceImpl<Question> implements QuestionService {
	
	@Autowired
	private QuestionMapper questionMapper;

	@Override
	public boolean insert(Question record) {
		return questionMapper.insert(record)==1 ;
	}
	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return questionMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(Question record) {
		return questionMapper.insertSelective(record)==1;
	}
	@Override
	public Question selectByPrimaryKey(Integer id) {
		return questionMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(Question record) {
		return questionMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(Question record) {
		return questionMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public List<Question> selectAll() {
		return questionMapper.selectAll();
	}
	@Override
	public List<Question> selectPagination(Map<String, Object> map) {
		return questionMapper.selectPagination(map);
	}
	@Override
	public Integer selectTotal(Map<String, Object> map) {
		return questionMapper.selectTotal(map);
	}
	@Override
	public boolean updateByPrimaryKeyWithBLOBs(Question record) {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public List<Question> selectPagination(Question t) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Integer selectTotal(Question t) {
		// TODO Auto-generated method stub
		return null;
	}
	

}
